/**  
* @author renbangjie renbangjie@126.com  
* @date 2015-9-10 下午5:12:21
* @version V1.0  
* <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
*/
package com.yjd.comm.enums;


/**
 * @author renbangjie renbangjie@126.com
 * @date 2015-9-10 下午5:12:21
 */
public enum DataTypeEnums {
	
	IDENTITY(1, "身份证"),
	MOBILE(2, "手机号"),
	LOCK(3, "锁定用户");
	
	private int code;
	private String label;
	
	private DataTypeEnums(int code, String label) {
		this.code = code;
		this.label = label;
	}
	
	
	public static DataTypeEnums get(int code) {
		for (DataTypeEnums dataType : DataTypeEnums.values()) {
			if(dataType.getCode() == code){
				return dataType;
			}
		}
		return null;
	}
	
	

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
}
